package com.orange.framework.config;

import com.orange.framework.handler.PageRequestArgumentResolver;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.List;

/**
 * TODO
 *
 * @Author YWF
 * @Date 2025/8/20 16:39
 */
@Configuration
public class WebPageRequestArgumentConfig implements WebMvcConfigurer {

    @Autowired
    private PageRequestArgumentResolver pageRequestArgumentResolver;

    @Override
    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) {
        resolvers.add(pageRequestArgumentResolver);
    }
}